<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>分享中心</title>
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <link rel="stylesheet" href="../css/aui.2.0.css">
    <link rel="stylesheet" href="../css/reset.css">
     <link rel="stylesheet" href="../css/alert.css">
    <link rel="stylesheet" href="../css/common.css">
    <link rel="stylesheet" href="../css/extension.css">
    <link rel="stylesheet" href="../css/aui-slide.css">

</head>
<body>
<!--头-->
<header class="aui-bar aui-bar-nav" id="aui-header" style="position:fixed;">
    <div class="aui-title">友惠云店</div>
</header>
<section class="my-index-box" id="page-box" style="margin-top:2rem;">
    <script type="text/x-handlebars-template" id="page-template">
        <!--轮播图-->
        <div id="aui-slide3">
            <div class="aui-slide-wrap">
                {{#each banners}}
                <a href="javascript:;" class="display-box">
                    <div class="aui-slide-node bg-dark">
                        <img src="{{url}}" />
                    </div>
                </a>
                {{/each}}
                <!--<div class="aui-slide-node bg-dark">
                    <img src="../images/banner2.2.png" />
                </div>-->
            </div>
            <div class="aui-slide-page-wrap"><!--分页容器--></div>
        </div>
        <!--分享部分-->
        <section class="my-share">
            <div class="bifa-box">
                <span class="bifa"><i class="bifaline"></i>今日必发<i class="bifaline"></i></span>
                <span class="update">每日零点更新</span>
            </div>
            <ul>
                <li class="my-share-li">
                    <a href="index.html">
                        <div class="my-share-li-img">
                            <img src="../images/jp.png" alt="">
                        </div>
                    </a>

                    <span>京东五折</span>
                    <p>京选分享</p>
                </li>
				 <li class="my-share-li">
                    <a href="commodity.html">
                        <div class="my-share-li-img">
                            <img src="../images/yh.png" alt="">
                        </div>
                    </a>

                    <span>友惠五折</span>
                         <p>超值分享</p>
                </li>
                <li class="my-share-li">
                    <a href="selected.html">
                        <div class="my-share-li-img">
                            <img src="../images/wx.png" alt="">
                        </div>
                    </a>

                    <span>微信分享</span>
                   <p>群发精选单品</p>
                </li>
                <li class="my-share-li">
                    <a href="friends.html">
                        <div class="my-share-li-img">
                            <img src="../images/friends.png" alt="">
                        </div>
                    </a>
                    <span>朋友圈分享</span>
                    <p>高收益一键群发</p>
                </li>
            </ul>
        </section>
        <!--平台公告-->
        <section class="my-notice">
            <p class="my-notice-text1">
               
			
                <span class="bifa">平台公告</span>
              
           		
            </p>
            <div class="scroll-list">
                <ul id="scroll-list-ul">
                    {{#each notices}}
                    <li class="my-notice-li aui-clearfix" data-noticeid="{{id}}">
                        <a href="javascript:;"><div>{{title}}</div></a>
                    </li>
                    {{/each}}
                </ul>
            </div>
        </section>
    </script>


</section>
<footer class="aui-bar aui-bar-tab" id="footer" style="display:none;">
    <a href="index.html">
        <div class="aui-bar-tab-item" tapmode>
            <img class="footer-icon-img" src="../images/JD_click.png" alt="">
            <div class="aui-bar-tab-label">首页</div>
        </div>
    </a>
    <a href="javascript:;">
        <div class="aui-bar-tab-item my-aui-active" tapmode>
            <i class="aui-iconfont aui-icon-calendar"></i>
            <div class="aui-bar-tab-label">分享中心</div>
        </div>
    </a>
    <a href="commodity.html">
        <div class="aui-bar-tab-item" tapmode>
            <i class="aui-iconfont aui-icon-cert"></i>
            <div class="aui-bar-tab-label">商品中心</div>
        </div>
    </a>
    <a href="my.html">
        <div class="aui-bar-tab-item" tapmode>
            <i class="aui-iconfont aui-icon-my"></i>
            <div class="aui-bar-tab-label">我</div>
        </div>
    </a>
</footer>

<script src="../js/jquery-3.0.0.min.js"></script>
<script src="../js/config.js"></script>
<script src="../js/handlebars-v4.0.10.js"></script>
<script src="../js/aui-lazyload.js"></script>
<script src="../js/function.js"></script>
<script src="../js/alert.js"></script>
<script src="../js/scroll.js"></script>
<script src="../js/api.2.0.js"></script>
<script src="../js/aui-slide.js"></script>
<script src="../js/common.js"></script>
<script src="../js/extension.js"></script>
<script>
    //获得slider插件对象
//    var gallery = mui('.mui-slider');
//    gallery.slider({
//        interval:5000//自动轮播周期，若为0则不自动播放，默认为0；
//    });
//    设置当前秒杀时间
//    $('.seckillTime ul li').click(function(){
//        $(this).parent().find('a').removeClass('seckillTime-active');
//        $(this).parent().find('p:nth-child(even)').text('即将开始');
//        $(this).find('a').addClass('seckillTime-active');
//        $(this).find('p').eq(1).text('已开枪');
//    })



    /**
     * 判断是iOS或是安卓，改变数据的获取方式
     *
     * */
	 //alert(1);
    var ua = navigator.userAgent.toLowerCase();
    if (/iphone|ipad|ipod/.test(ua)) {
        //alert('iOS的弹窗');
        var data={
            postType:'getToken'
        };
        postSuccessToken(data);

    } else {
        //alert('android的弹窗。');
        postAndroidToken();
    }

    //调用ios获取token方法。
    function postSuccessToken(data) {
        window.webkit.messageHandlers.postSuccessToken.postMessage(data);
    }

    //调用Android获取token方法
    function postAndroidToken() {
        window.getToken();
    }

    function getToken(token) {
        localStorage.setItem('token',token);
        //alert('获取到的token为'+token);
    }
</script>
<script>
/* function jdbut(){
	// alert('11');
	 var ua = navigator.userAgent.toLowerCase();
    var inviteData = {
        postType:'getgoWebActivity'
    };
    if (/iphone|ipad|ipod/.test(ua)) {
   	 //alert("ios")
        iosJumpInvite(inviteData)
    } else {
   	// alert("android")
   	 androidJumpInvite(JSON.stringify(inviteData));
      
    }
}
//店铺分享拉取安卓分享
function androidJumpInvite(param) {
   //
	//alert(1)
   window.huifa.getgoWebActivity(param);
}

function yhbut(){

	 var ua = navigator.userAgent.toLowerCase();
	 var getgoShopActivity = {
	            postType:'getgoShopActivity'
	        };
	    if (/iphone|ipad|ipod/.test(ua)) {
	        iosCopyh(getgoShopActivity);
	        event.stopPropagation();
	    } else {
	        //console.log(JSON.stringify(data));
	        androidyh(JSON.stringify(getgoShopActivity));
	        event.stopPropagation();
	    }
}
//店铺分享拉取安卓分享
function androidyh(param) {
   //alert(param);
   window.huifa.getgoShopActivity(param);
}
 */


</script>
</body>
</html>